//
//  ListFlat.h
//  FinApp
//
//  Created by Victor Leandro Fernandez Rodrigo on 11/11/11.
//  Copyright (c) 2011 FIB-Fàcultat d'informàtica de Barcelona. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface ListFlat : NSObject

@property (nonatomic) NSInteger idFlat;
@property (retain, nonatomic) NSString *street;
@property (retain, nonatomic) NSString *city;
@property (nonatomic) NSInteger dimensions;
@property (nonatomic) NSInteger numRooms;
@property (nonatomic) float price;
@property (retain, nonatomic) NSString *imageURL;
@property (retain, nonatomic) NSString *flatType;
@property (nonatomic) float latitude;
@property (nonatomic) float longitude;
@property (nonatomic) float distance;
@property (nonatomic) BOOL lowerPrice;

+ (ListFlat*)listFlatFromDictionary:(NSDictionary*)flatDictionary;

+ (NSDictionary*)dictionaryFromFlat:(ListFlat*)listFlat;

@end
